/**
 *
 */
package kevin.study.zephyr.internal;

/**
 * @author Kevin.Huang
 * @createtime 2007-9-20
 */
public final class InternalPlatform {

	/**
	 * 单例
	 */
	static final class InternalPlatformHolder {
		private InternalPlatformHolder() {
		}

		static final InternalPlatform SINGLETON = new InternalPlatform();
	}

	private InternalPlatform() {
		super();
	}

	/**
	 * 获得平台
	 *
	 * @return
	 */
	public static InternalPlatform getDefault() {
		return InternalPlatformHolder.SINGLETON;
	}

	/**
	 * 取得ItemManager
	 *
	 * @return
	 */
	public ItemManager getItemManager() {
		return ItemManager.getDefault();
	}

	/**
	 * 取得FormManager
	 *
	 * @return
	 */
	public FormManager getFormManager() {
		return FormManager.getDefault();
	}

	/**
	 * 取得DocumentManager
	 *
	 * @return
	 */
	public DocumentManager getDocumentManager() {
		return DocumentManager.getDefault();
	}

	/**
	 * 取得DBManager
	 *
	 * @return
	 */
	public DBManager getDBManager() {
		return DBManager.getDefault();
	}

	/**
	 * 取得ViewManager
	 *
	 * @return
	 */
	public ViewManager getViewManager() {
		return ViewManager.getDefault();
	}
}
